import torch.nn as nn


class BaseDecoder(nn.Module):
    """Decoder的基类"""

    def __init__(self, attentional=True):
        super(BaseDecoder, self).__init__()
        self.attentional = attentional

    @classmethod
    def from_opt(cls, opt, embeddings):
        pass
